package cn.imnaer.service.persistence.model;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * 朋友圈表模型
 * Created by Administrator on 2015/5/8.
 */
public class FriendCircle implements Serializable {

    private String friendCircleId;
    private String userId;
    private Long createTime;
	private String image;  //第一张照片
    /**
     * 朋友圈(玩伴) 类型
     *
     * @see cn.imnaer.service.rpc.enums.EnumFriendCircleType
     */
    private String type;
    /**
     * 朋友圈项ID 和类型一起组合的复合ID
     */
    private String itemId;
 /**
  * 玩伴经验
  */
    private List<String> containScenicIds = new ArrayList<>();


    public String getFriendCircleId() {
        return friendCircleId;
    }

    public void setFriendCircleId(String friendCircleId) {
        this.friendCircleId = friendCircleId;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public Long getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Long createTime) {
        this.createTime = createTime;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getItemId() {
        return itemId;
    }

    public void setItemId(String itemId) {
        this.itemId = itemId;
    }
    public String getImage() {
		return image;
	}

	public void setImage(String image) {
		this.image = image;
	}

    public List<String> getContainScenicIds() {
        return containScenicIds;
    }

    public void setContainScenicIds(List<String> containScenicIds) {
        this.containScenicIds = containScenicIds;
    }

    public void addContainScenicId(String id) {
        if(!this.containScenicIds.contains(id))
            this.containScenicIds.add(id);
    }
}
